package com.fm.openinstall.e;

import com.fm.openinstall.f.*;
import android.app.*;
import android.content.*;
import android.annotation.*;

public class b extends a
{
    private c c;
    private Application d;
    private int e;
    private Application.ActivityLifecycleCallbacks f;

    public b(final Context context, final f f) {
        super(context, f);
        this.c = com.fm.openinstall.f.c.a(b.class);
        this.d = (Application)context.getApplicationContext();
    }

    @TargetApi(14)
    @Override
    public void a() {
        this.e = 0;
        this.f = (Application.ActivityLifecycleCallbacks)new com.fm.openinstall.e.c(this);
        this.d.registerActivityLifecycleCallbacks(this.f);
    }

    @TargetApi(14)
    @Override
    public void b() {
        this.e = 0;
        final Application.ActivityLifecycleCallbacks f = this.f;
        if (f != null) {
            this.d.unregisterActivityLifecycleCallbacks(f);
            this.f = null;
        }
    }
}
